home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15133 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: news.cern.ch!danpop
  2. From: danpop@mail.cern.ch (Dan Pop)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Differences: Turbo vs. Microsoft
  5. Date: 17 Apr 96 11:58:01 GMT
  6. Organization: CERN European Lab for Particle Physics
  7. Message-ID: <danpop.829742281@news.cern.ch>
  8. References: <1996Apr15.172003.140044@forest> <16APR199607502310@erich.triumf.ca> <danpop.829677541@news.cern.ch> <4l18i5$9sj@news.interpath.net>
  9. NNTP-Posting-Host: ues5.cern.ch
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=US-ASCII
  12. Content-Transfer-Encoding: 7bit
  13. X-Newsreader: NN version 6.5.0 #7 (NOV)
  14.  
  15. In <4l18i5$9sj@news.interpath.net> softbase@mercury.interpath.com (Scott McMahan - Softbase Systems) writes:
  16.  
  17. >Dan Pop (danpop@mail.cern.ch) wrote:
  18. >: And to really answer the question of the original poster: there is no
  19. >: difference between the C that's in Turbo C and the C that's in
  20. >: Microsoft C.
  21. >
  22. >None whatsoever? They both implement ANSI C identically?
  23.  
  24. Yes, as far as I can tell and the ANSI standard is concerned (modulo
  25. possible bugs).
  26.  
  27. >I've never pored over the ANSI C implementation documentation for
  28. >both compilers side by side, but there's bound to be some differences.
  29. >Normal code shouldn't run into them.
  30.  
  31. And code invoking undefined behaviour is of no interest as far as the
  32. ANSI C language is concerned.  In other words, i=i++ might produce
  33. different results on the two compilers, but this doesn't invalidate
  34. my point: any result is correct for this expression, according to the
  35. definition of the C language (if anybody has any objections about this
  36. statement, reading the FAQ before posting them will save him from getting
  37. badly burned).
  38.  
  39. Dan
  40. --
  41. Dan Pop
  42. CERN, CN Division
  43. Email: danpop@mail.cern.ch 
  44. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  45.